//登录接口需要携带参数ts类型
export interface loginFormData{
    username:string,
    password:string
}
//接口返回的数据类型
interface responseData{
    code:number,
    message:string,
    ok:boolean
}
//登录接口返回数据类型
export interface loginResponseData extends responseData{
    data:string
}
//用户信息接口返回的数据类型
export interface userInfoResponseData extends responseData{
    data:{
        routes:string[],
        buttons:string[],
        roles:string[],
        name:string,
        avatar:string
    }
}